// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** listSpaceCategoryAnalyze POST /api/space/analysis/category */
export async function listSpaceCategoryAnalyzeUsingPost(
  body: API.SpaceAnalysisRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListSpaceCategoryAnalyzeResponse_>(
    '/api/space/analysis/category',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  )
}

/** listSpaceRankAnalyze POST /api/space/analysis/rank */
export async function listSpaceRankAnalyzeUsingPost(
  body: API.SpaceRankAnalyzeRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListSpace_>('/api/space/analysis/rank', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listSpaceSizeAnalyze POST /api/space/analysis/size */
export async function listSpaceSizeAnalyzeUsingPost(
  body: API.SpaceAnalysisRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListSpaceSizeAnalyzeResponse_>('/api/space/analysis/size', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listSpaceTagAnalyze POST /api/space/analysis/tags */
export async function listSpaceTagAnalyzeUsingPost(
  body: API.SpaceAnalysisRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListSpaceTagAnalyzeResponse_>('/api/space/analysis/tags', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getSpaceUsageAnalyze POST /api/space/analysis/usage */
export async function getSpaceUsageAnalyzeUsingPost(
  body: API.SpaceAnalysisRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseSpaceUsageAnalyzeResponse_>('/api/space/analysis/usage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listSpaceUserAnalyze POST /api/space/analysis/user */
export async function listSpaceUserAnalyzeUsingPost(
  body: API.SpaceUserAnalysisRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListSpaceUserAnalyzeResponse_>('/api/space/analysis/user', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
